package com.xy.test;

import com.xy.bean.Red;
import com.xy.config.MainConfigAutowired;
import com.xy.dao.BookDao;
import com.xy.service.BookService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.concurrent.RecursiveTask;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/8 20:05
 * @description
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MainConfigAutowired.class)
public class IOCTest_Autowired {
    @Autowired
    private BookService bookService;
    @Autowired
    private Red red;

    @Test
    public void testPrint() {
        bookService.print();
    }
}
